/*
 * $Id: ISweepPropertiesDAO.java,v 1.15 2009/10/08 14:10:12 afaichun Exp $
 * 
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.common.database.dao;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 212042764
 * 
 */
public interface ISweepPropertiesDAO extends IBaseDAO {
	public static final String SWEEP_DIR = "SWEEP_DIR";
	public static final String SCRIPT_NAME = "SCRIPT_NAME";
	public static final String REPORT_ONLY = "REPORT_ONLY";
	public static final String EMAIL = "EMAIL";
	public static final String ARGUMENTS = "ARGUMENTS";
	public static final String IS_DYNAMIC = "IS_DYNAMIC";
	public static final String IS_DEBUG = "IS_DEBUG";
	public static final String EXECUTION_TIME = "EXECUTION_TIME";
	public static final String REMOTE_SCRIPT = "REMOTE_SCRIPT";
	public static final String STORE_IN_DATA = "STORE_IN_DATA";
	public static final String ONWATCH_CMD_DIR = "ONWATCH_CMD_DIR";
	public static final String ONWATCH_CMD_FILE = "ONWATCH_CMD_FILE";
	public static final String ONWATCH_USER = "ONWATCH_USER";
	public static final String ONWATCH_CMD_DOCTYPE = "ONWATCH_CMD_DOCTYPE";
	public static final String PRODI_ADDTASK_CMD_FILE = "PRODI_ADDTASK_CMD_FILE";
	public static final String PRODI_MODIFYTASK_CMD_FILE = "PRODI_MODIFYTASK_CMD_FILE";
	public static final String PRODI_UNINSTALLTASK_CMD_FILE = "PRODI_UNINSTALLTASK_CMD_FILE";
	public static final String PRODI_INSTALLTASK_CMD_FILE = "PRODI_INSTALLTASK_CMD_FILE";
	public static final String PRODI_DELETETASK_CMD_FILE = "PRODI_DELETETASK_CMD_FILE";
	public static final String CREATED_BY = "CREATED_BY";

	/**
	 * This method accepts the pojo and starts a new transaction so that it can
	 * always save the pojo in DB irrespective the calling transaction was
	 * success/failure
	 * 
	 * @param pojo
	 *            - pojo to save
	 */
	@Transactional(propagation = Propagation.REQUIRES_NEW)
	public void saveAlways(Object pojo);
}
